package com.ruoyi.project.app.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.app.util.XResult;
import com.ruoyi.project.system.notice.domain.Notice;
import com.ruoyi.project.system.notice.service.INoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/app/notice")
@Api(tags = "消息模块 ")
public class AppNoticeController{
    @Autowired
    private INoticeService noticeService;

    /**
     * 查询通知公告列表
     * @return
     */
    @PostMapping("selectNoticeList")
    @ApiOperation(notes = "selectNoticeList", value = "查询通知公告列表")
    public Object selectNoticeList()  {
        return new XResult("查询成功", noticeService.selectNoticeList(new Notice()));
    }

}
